package com.cskaoyan.service;

import com.cskaoyan.bean.bo.AdComment;
import com.cskaoyan.bean.bo.Goods_list;
import com.cskaoyan.bean.marketBean.*;
import com.cskaoyan.bean.vo.ZYL_admin_orderVO;
import com.cskaoyan.mapper.marketMapper.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class MarketGoodsZylServiceImpl implements MarketGoods_zyl_Service {


    @Autowired
    MarketGoodsMapper marketGoodsMapper;
    @Autowired
    MarketCommentMapper marketCommentMapper;
    @Autowired
    MarketGoodsAttributeMapper marketGoodsAttributeMapper;
    @Autowired
    MarketGoodsProductMapper marketGoodsProductMapper;

    @Autowired
    MarketGoodsSpecificationMapper marketGoodsSpecificationMapper;

    @Autowired
    MarketBrandMapper marketBrandMapper;
    @Autowired
    MarketCategoryMapper marketCategoryMapper;


    @Override
    public MarketCategory selectByPrimaryKey_zyl(Integer id) {
        return marketCategoryMapper.selectByPrimaryKey(id);
    }

    @Override
    public int insert(MarketGoodsSpecification record) {
        return marketGoodsSpecificationMapper.insert(record);
    }

    @Override
    public int insert(MarketGoodsProduct record) {
        return marketGoodsProductMapper.insert(record);
    }

    @Override
    public int insert(MarketGoods record) {
        return marketGoodsMapper.insert(record);
    }

    @Override
    public int insert(MarketGoodsAttribute record) {
        return marketGoodsAttributeMapper.insert(record);
    }

    @Override
    public int updateByPrimaryKey(MarketGoodsProduct record) {
        return marketGoodsProductMapper.updateByPrimaryKey(record);
    }

    @Override
    public int updateByPrimaryKey(MarketGoodsSpecification record) {
        return marketGoodsSpecificationMapper.updateByPrimaryKey(record);
    }

    @Override
    public int updateByPrimaryKey(MarketGoods record) {
        return marketGoodsMapper.updateByPrimaryKey(record);
    }

    @Override
    public int updateByPrimaryKey(MarketGoodsAttribute record) {
        return  marketGoodsAttributeMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<MarketCategory_zyl> selectByExample_list_zyl() {
        return marketCategoryMapper.selectByExample_list_zyl();
    }

    @Override
    public List<MarketCategory_zyl> selectByPrimaryKey_goods_zyl(Integer id) {
        return marketCategoryMapper.selectByPrimaryKey_goods_zyl(id);
    }

    @Override
    public MarketCategory selectByPrimaryKey_gMarketCategory(Integer id) {
        return marketCategoryMapper.selectByPrimaryKey(id);
    }

    @Override
    public int setContent_zyl(ZYL_admin_orderVO zyl_admin_orderVO) {
        return marketCommentMapper.setContent_zyl(zyl_admin_orderVO);
    }

    @Override
    public List<MarketGoods> list(Goods_list goods) {
        return marketGoodsMapper.list(goods);
    }

    @Override
    public List<MarketComment> zyl_list_comment(AdComment goods) {
        return marketCommentMapper.zyl_list_comment(goods);
    }

    @Override
    public int delete_zyl_goods(Integer id) {
        return marketGoodsMapper.delete_zyl_goods(id);
    }

    @Override
    public int delete_zyl_goods_product(Integer id) {
        return marketGoodsMapper.delete_zyl_goods_product(id);
    }

    @Override
    public int delete_zyl_goods_specification(Integer id) {
        return marketGoodsMapper.delete_zyl_goods_specification(id);
    }

    @Override
    public int delete_zyl_goods_attribbute(Integer id) {
        return marketGoodsMapper.delete_zyl_goods_attribbute(id);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return marketCommentMapper.deleteByPrimaryKey(id);
    }

    @Override
    public List<MarketGoodsAttribute> selectByExampleAttribute(MarketGoodsAttributeExample example) {
        return marketGoodsAttributeMapper.selectByExample(example);
    }

    @Override
    public MarketGoods selectByPrimaryKey(Integer id) {
        return marketGoodsMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<MarketGoodsProduct> selectByExampleProduct(MarketGoodsProductExample example) {
        return marketGoodsProductMapper.selectByExample(example);
    }

    @Override
    public List<MarketGoodsSpecification> selectByExampleSpecification(MarketGoodsSpecificationExample example) {
        return marketGoodsSpecificationMapper.selectByExample(example);
    }

    @Override
    public List<MarketBrand> selectByExample(MarketBrandExample example) {
        return marketBrandMapper.selectByExample(example);
    }

    @Override
    public List<MarketCategory> selectByExample(MarketCategoryExample example) {
        return marketCategoryMapper.selectByExample(example);
    }


}
